<?php
/**
 * Created by PhpStorm.
 * User: yxs
 * Date: 2017/8/4
 * Time: 16:27
 */

namespace validate;

use think\Validate;

class ShopOrder extends Validate
{
    protected $rule = [
        'o_mobile'=>'length:11',
        'o_address'=>'require'
    ];

    protected $message = [
        //'o_mobile.require'=>'请输入手机号',
        'o_mobile.length'=>'请输入正确的手机号',
        'o_address'=>'请输入收货地址'
    ];

}